#ifndef WIDGETVARIANTSTRING_H
#define WIDGETVARIANTSTRING_H

#include <DefineLibUiQt.h>
#include <QtWidgets/QWidget>
#include <WidgetVariant.h>

namespace Ui {
class WidgetVariantString;
}

class LIB_UI_QT_DLL WidgetVariantString : public WidgetVariant
{
    Q_OBJECT

public:
    explicit WidgetVariantString(QWidget *parent = 0);
    virtual ~WidgetVariantString();
    
    virtual void refreshByProperty(EItemMetaPropertyPtr p);
    virtual void buildConnect();
    virtual void clearConnect();

    void setLabel(QString& context);
    void setContext(QString& context);
    void setIfReadOnly(bool boolValue);
public slots:
    void slotValueChanged(const QString& value);

private:
    Ui::WidgetVariantString *ui;
};

#endif // WIDGETVARIANTSTRING_H
